/*
 * iShopPlace Project.
 */
package ishopplace.model.dao.hibernate;

import ishopplace.model.businessobject.Account;
import ishopplace.model.dao.CustomerDao;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

/**
 * The Hibernate implementation of the <code>CustomerDao</code>.
 * 
 * @author <a href="mailto:derek@derekshen.com">Derek Y. Shen</a>
 * @see CustomerDao
 */
public class CustomerDaoHibernateImpl extends HibernateDaoSupport implements CustomerDao {
	public Account getAccount(String accountId) {
		return (Account)this.getHibernateTemplate().load(Account.class, accountId);
	}
	
	public void saveAccount(Account account) {
		this.getHibernateTemplate().save(account);
	}
	
	public void updateAccount(Account account) {
		this.getHibernateTemplate().update(account);
	}
}
